﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlmacenAdmin.aspx.cs" Inherits="UILGestion.AlmacenAdmin.AlmacenAdmin" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../ObraAdmin/RecepcionDoc/OrdenCompraRecepGrid.ascx" tagname="OrdenCompraRecepGrid" tagprefix="uc4" %>
<%@ Register src="../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register src="NotaSalidaRecepGrid.ascx" tagname="NotaSalidaRecepGrid" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
    
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/>
    <uc1:menuCtrl ID="menuCtrl1" runat="server" />
<input id="idObra" type="hidden"  runat="server" />
<input id="idAlmacen" type="hidden"  runat="server" />


 <asp:Panel ID="pnlMain" runat="server" 
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
   <asp:Label ID="Label1" runat="server" Text="INICIO ALMACEN" 
                         style="font-size: large; color: #960818"></asp:Label>
                         </asp:Panel>

        
<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >
    <asp:Panel ID="OrdenCompraPendienteRecepPanel" runat="server" 
    GroupingText="Orden de Compra: Pendiente de Recepcion En Almacen" 
   

    Width="800px">
    
        <br />
          <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional"  >
       <ContentTemplate>

<uc4:OrdenCompraRecepGrid ID="OrdenCompraRecepGrid1" runat="server" DataSourceID="OCompraerecepODS" />

      
 <asp:ObjectDataSource ID="OCompraerecepODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getOrdenCompraSinRecepcion" SortParameterName="sortExpression"
        TypeName="BOL.OrdenCompraBL">
       
  
  <SelectParameters>
    
    <asp:QueryStringParameter Name="idAlmacen" Type="Int32" QueryStringField="idAlmacen" />
     <asp:Parameter Name="startRowIndex" Type="Int32" />
     <asp:Parameter Name="maximumRows" Type="Int32" />
     <asp:Parameter Name="sortExpression" Type="String" />
  </SelectParameters>
  
 </asp:ObjectDataSource>

</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
    
    


    
    <asp:Panel ID="Panel2" runat="server" 
    GroupingText="Notas Salida: Translado entre establecimiento" 
    Width="800px">
    <table>
    <tr>
    <td>Almacen
    </td>
    <td>
        <asp:DropDownList ID="almacenDDL" runat="server" Width="250px"  AutoPostBack="true">
        </asp:DropDownList>
    </td>
    </tr>
    </table>
   <asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional"  >
       <ContentTemplate>


<uc2:NotaSalidaRecepGrid ID="NotaSalidaRecepGrid1" runat="server" DataSourceID="notaSalidaODS"  />
<asp:ObjectDataSource ID="notaSalidaODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getNotaSalidaPentList" SortParameterName="sortExpression"
        TypeName="BOL.NotaSalidaBL">
       
  
  <SelectParameters>
    
    <asp:QueryStringParameter Name="idAlmacenDestino" Type="Int32" QueryStringField="idAlmacen" />
    <asp:ControlParameter Name="idAlmacenOrigen" Type="Int32" ControlID="almacenDDL"  />
                                                           
     <asp:Parameter Name="startRowIndex" Type="Int32" />
     <asp:Parameter Name="maximumRows" Type="Int32" />
     <asp:Parameter Name="sortExpression" Type="String" />
  </SelectParameters>
  
 </asp:ObjectDataSource>

</ContentTemplate>
</asp:UpdatePanel>

    </asp:Panel>
    </asp:Panel>
    </form>
</body>
</html>
